html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  display: flex;
}

.container {
  width: 100%;
  height: 100%;
  margin: auto;
  background-color: #000;
  perspective: 10px;
  transition: perspective 3s ease;
  overflow: hidden;
}

.container:hover {
  perspective: 2800px;
}

.container .text-wraper {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  display: flex;
  justify-content: space-between;
}

.container .text-wraper span {
  writing-mode: vertical-rl;
  color: #fff;
  font-family: cursive;
}

.container .text-wraper span.center {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
}
